package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.bac.BacObserResultNoGerm;
import com.ysd.lis.entity.lab.LabTextResult;
import com.ysd.lis.service.bac.BacObserResultNoGermService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wh
 * @since 2025-03-21
 */
@RestController
@RequestMapping("/api/bac/obserResultNoGerm")
public class BacObserResultNoGermController extends BaseController {

    @Autowired
    private BacObserResultNoGermService bacObserResultNoGermService;

    @ApiOperation("批量新增或修改观察结果")
    @PostMapping("/saveOrUpdate")
    public Result saveOrUpdate(@RequestBody List<BacObserResultNoGerm> bacObserResultNoGerms) {
        return bacObserResultNoGermService.saveOrUpdateResult(bacObserResultNoGerms);
    }

    @ApiOperation("批量删除观察结果")
    @PostMapping("/batchDelete")
    public Result batchDelete(@RequestBody List<BacObserResultNoGerm> bacObserResultNoGerms) {
        return bacObserResultNoGermService.batchDelete(bacObserResultNoGerms);
    }
    @ApiOperation("获取观察结果列表")
    @GetMapping("/getObserResultList")
    public Result getObserResultList(BacObserResultNoGerm bacObserResultNoGerms) {
        return bacObserResultNoGermService.getObserResultList(bacObserResultNoGerms);
    }
}
